class AuthActionController {

    static authorize = "admin"

    def index = {redirect(action: list, params: params)}

    // the delete, save and update actions only accept POST requests
    def allowedMethods = [delete: 'POST', save: 'POST', update: 'POST']

    def list = {
        if (!params.max) params.max = 10
        [actionList: AuthAction.list(params)]
    }

    def show = {
        def action = AuthAction.get(params.id)
        log.debug "Action is ${action.name} for controller ${action?.controler?.name}"
        [action: action]
    }

}                                                      